CREATE TABLE [dbo].[TTCODE_VENT]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_DEST] [dbo].[TD_VC_003] NOT NULL,
[DE_DEST] [dbo].[TD_VC_100] NOT NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTCODE_VE__CO_US__6379A719] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTCODE_VE__FE_US__646DCB52] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTCODE_VE__CO_US__6561EF8B] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTCODE_VE__FE_US__665613C4] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTCODE_VENT] ADD CONSTRAINT [PK__TTCODE_V__372D578003F163A3] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_DEST]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTCODE_VENT] ADD CONSTRAINT [FK__TTCODE_VE__CO_EM__4BCD0611] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
